package com.ruoyi.order.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 订单管理对象 vehicle_order
 * 
 * @author ruoyi
 * @date 2023-06-26
 */
@Data
public class VehicleOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 订单主键 */
    private Long id;

    /** 乘客外键 */
    @Excel(name = "乘客外键")
    private Long passengerId;

    /** 司机外键 */
    @Excel(name = "司机外键")
    private Long driverId;

    /** 乘客预约上车地址 */
    @Excel(name = "乘客预约上车地址")
    private String pickupLocation;

    /** 预约上车时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "预约上车时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date pickupTime;

    /** 乘客预约下车地址 */
    @Excel(name = "乘客预约下车地址")
    private String dropoffLocation;

    /** 预计到达时间 */

    private Integer dropoffTime;

    /** 实际到达时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "实际到达时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date actualDropoffTime;

    private String orderNo;

    /** 订单金额 */
    @Excel(name = "订单金额")
    private BigDecimal fare;

    /** 订单状态 */
    @Excel(name = "订单状态")
    private String orderStatus;

    /** 支付方式 */
    @Excel(name = "支付方式")
    private String paymentMethod;

    /** 支付时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "支付时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date paymentTime;


}
